﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UtilZ.Dotnet.Ex.Communication.Net.Telnet.KeyCommands
{
    internal class TabCommand : TelnetKeyCommandAbs
    {
        public TabCommand()
              : base()
        {

        }

        protected override bool PrimitveProcess(ListenTelnetClient telnetClient, byte[] data, int revicedDataLength)
        {
            if (revicedDataLength == 1 && data[0] == 9)//linux-windows-mac
            {
                //Tab
                base.SendEcho(telnetClient, data, revicedDataLength);
                return true;
            }

            
            return false;
        }
    }
}
